.class public Lnbisdk/cu;
.super Ljava/lang/Object;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public constructor <init>(DIDDII)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static e(Lnbisdk/fk;)Lnbisdk/ej;
    .locals 8

    new-instance v0, Lnbisdk/ej;

    invoke-direct {v0}, Lnbisdk/ej;-><init>()V

    const-string v1, "name"

    invoke-static {p0, v1}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/ej;->setName(Ljava/lang/String;)V

    const-string v1, "modtime"

    invoke-virtual {p0, v1}, Lnbisdk/fk;->U(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "modtime"

    invoke-static {p0, v1}, Lnbisdk/ka;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lnbisdk/ej;->setServerModTime(J)V

    :cond_0
    const-string v1, "id"

    invoke-virtual {p0, v1}, Lnbisdk/fk;->U(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string v1, "id"

    invoke-static {p0, v1}, Lnbisdk/ok;->i(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Lnbisdk/ej;->setId(I)V

    :cond_1
    new-instance v1, Lnbisdk/ca;

    const-string v2, "location"

    invoke-static {p0, v2}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v2

    invoke-direct {v1, v2}, Lnbisdk/ca;-><init>(Lnbisdk/fk;)V

    invoke-virtual {v1}, Lnbisdk/ca;->bR()Lnbisdk/so;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/ej;->b(Lnbisdk/so;)V

    invoke-virtual {p0}, Lnbisdk/fk;->ae()Ljava/util/Enumeration;

    move-result-object v1

    :cond_2
    :goto_0
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v2

    if-eqz v2, :cond_8

    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lnbisdk/fk;

    invoke-virtual {p0}, Lnbisdk/fk;->getName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "category"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    invoke-static {p0}, Lnbisdk/bb;->a(Lnbisdk/fk;)Lnbisdk/iv;

    move-result-object v2

    invoke-virtual {v0, v2}, Lnbisdk/ej;->a(Lnbisdk/iv;)V

    goto :goto_0

    :cond_3
    const-string v3, "phone"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_7

    const-string v2, "kind"

    invoke-static {p0, v2}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "country"

    invoke-static {p0, v3}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "area"

    invoke-static {p0, v4}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "number"

    invoke-static {p0, v5}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x0

    const-string v7, "secondary"

    invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_4

    const/4 v2, 0x1

    :goto_1
    new-instance v6, Lnbisdk/eq;

    invoke-direct {v6, v2, v3, v4, v5}, Lnbisdk/eq;-><init>(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v6}, Lnbisdk/ej;->a(Lnbisdk/eq;)V

    goto :goto_0

    :cond_4
    const-string v7, "national"

    invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_5

    const/4 v2, 0x2

    goto :goto_1

    :cond_5
    const-string v7, "mobile"

    invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_6

    const/4 v2, 0x3

    goto :goto_1

    :cond_6
    const-string v7, "fax"

    invoke-virtual {v2, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_9

    const/4 v2, 0x4

    goto :goto_1

    :cond_7
    const-string v3, "pair"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-static {p0}, Lnbisdk/co;->i(Lnbisdk/fk;)Lnbisdk/of;

    move-result-object v2

    invoke-virtual {v0, v2}, Lnbisdk/ej;->a(Lnbisdk/of;)V

    goto :goto_0

    :cond_8
    return-object v0

    :cond_9
    move v2, v6

    goto :goto_1
.end method

.method public static f(Lnbisdk/fk;)Lnbisdk/ep;
    .locals 3

    new-instance v0, Lnbisdk/ep;

    invoke-direct {v0}, Lnbisdk/ep;-><init>()V

    invoke-static {p0}, Lnbisdk/cu;->e(Lnbisdk/fk;)Lnbisdk/ej;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/ep;->b(Lnbisdk/ej;)V

    const-string v1, "speed-camera"

    invoke-static {p0, v1}, Lnbisdk/ij$a;->e(Lnbisdk/fk;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "speed-camera"

    invoke-static {p0, v1}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v1

    const-string v2, "limit"

    invoke-static {v1, v2}, Lnbisdk/ov;->l(Lnbisdk/fk;Ljava/lang/String;)F

    const-string v2, "heading"

    invoke-static {v1, v2}, Lnbisdk/ov;->l(Lnbisdk/fk;Ljava/lang/String;)F

    const-string v2, "bi-directional"

    invoke-static {v1, v2}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    const-string v2, "status"

    invoke-static {v1, v2}, Lnbisdk/ok;->i(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    const-string v2, "description"

    invoke-static {v1, v2}, Lnbisdk/ok;->i(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    const-string v2, "camera-segment"

    invoke-static {v1, v2}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v1

    if-eqz v1, :cond_0

    new-instance v2, Lnbisdk/jp;

    invoke-direct {v2}, Lnbisdk/jp;-><init>()V

    const-string v2, "on-route"

    invoke-static {v1, v2}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    const-string v2, "man-num"

    invoke-static {v1, v2}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    const-string v2, "seg-num"

    invoke-static {v1, v2}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    :cond_0
    return-object v0
.end method

.method public static g(Lnbisdk/fk;)Lnbisdk/pp;
    .locals 12

    const/4 v11, 0x0

    new-instance v0, Lnbisdk/pp;

    invoke-direct {v0}, Lnbisdk/pp;-><init>()V

    invoke-static {p0}, Lnbisdk/cu;->e(Lnbisdk/fk;)Lnbisdk/ej;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/pp;->b(Lnbisdk/ej;)V

    const-string v1, "traffic-incident"

    invoke-static {p0, v1}, Lnbisdk/ij$a;->e(Lnbisdk/fk;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string v1, "traffic-incident"

    invoke-static {p0, v1}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v1

    const-string v2, "criticality"

    invoke-static {v1, v2}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v2

    long-to-int v2, v2

    const-string v3, "type"

    invoke-static {v1, v3}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v3

    long-to-int v3, v3

    const-string v4, "utc-offset"

    invoke-static {v1, v4}, Lnbisdk/ok;->i(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    const-string v5, "entry-time"

    invoke-static {v1, v5}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v5

    invoke-static {v5, v6, v4}, Lnbisdk/pb;->getJavaTimeFromGPSTime(JI)J

    move-result-wide v5

    const-string v7, "start-time"

    invoke-static {v1, v7}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v7

    invoke-static {v7, v8, v4}, Lnbisdk/pb;->getJavaTimeFromGPSTime(JI)J

    move-result-wide v7

    const-string v9, "end-time"

    invoke-static {v1, v9}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v9

    invoke-static {v9, v10, v4}, Lnbisdk/pb;->getJavaTimeFromGPSTime(JI)J

    move-result-wide v9

    invoke-virtual {v0, v3}, Lnbisdk/pp;->setType(I)V

    invoke-virtual {v0, v2}, Lnbisdk/pp;->bf(I)V

    invoke-virtual {v0, v7, v8}, Lnbisdk/pp;->setStartTime(J)V

    invoke-virtual {v0, v5, v6}, Lnbisdk/pp;->l(J)V

    invoke-virtual {v0, v9, v10}, Lnbisdk/pp;->b(J)V

    const-string v2, "road"

    invoke-static {v1, v2}, Lnbisdk/ok;->i(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lnbisdk/pp;->aD(Ljava/lang/String;)V

    const-string v2, "description"

    invoke-static {v1, v2}, Lnbisdk/ok;->i(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_0

    invoke-virtual {v1, v11}, Ljava/lang/String;->charAt(I)C

    move-result v2

    invoke-virtual {v1, v11}, Ljava/lang/String;->charAt(I)C

    move-result v3

    invoke-static {v3}, Ljava/lang/Character;->toUpperCase(C)C

    move-result v3

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    :cond_0
    invoke-virtual {v0, v1}, Lnbisdk/pp;->setDescription(Ljava/lang/String;)V

    :cond_1
    return-object v0
.end method
